package com.user.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bean.AdminOrder;
import com.bean.OrderDetail;
import com.user.service.OrderDetailService;
@Controller
public class OrderDetailController {
   @Autowired
   private OrderDetailService orderdetailService;
   @RequestMapping("/deleteOrderDetail")
   public String deleteOrderDetail(OrderDetail orderDetail) {
	   return orderdetailService.deleteOrderDetail(orderDetail);
   }
   @RequestMapping("/getOrderDetail")
   public String selectOrderDetail(HttpServletRequest req,HttpSession session) {
	   return orderdetailService.selectOrderDetail(req,session);
   }
   @RequestMapping("/addOrderDetail")
   public String addOrderDetail(OrderDetail orderDetail,HttpSession session,Model model) {
	   return orderdetailService.addOrderDetail(orderDetail,session,model);
   }
}
